package cs.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class SpringMVC {
    @RequestMapping("first-mvc")
    @ResponseBody
    public String hello() {
        return "Hello World!";
    }
    @RequestMapping("student")
    public String search(){
        return "student";
    }

    @RequestMapping("student-info")
    public String studentInfo(){
        return "redirect:studentInfo.jsp";
    }
}
